﻿using System.Collections.Generic;

namespace Xms.Abp.Data;

public abstract class StructTreeBase<TTree, TKey> : IStructTree<TTree, TKey>
    where TTree : class, ITree<TTree>, IStructTree<TTree, TKey>
    where TKey : struct
{
    public TKey Id { get; set; }
    public TKey ParentId { get; set; }
    public List<TTree> Children { get; set; } = new List<TTree>();

    public abstract TTree Clone();
}

